<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<script type="text/javascript">
  $(function() {
    middleExpenditureModule.init();
  });
  var middleExpenditureModule = (function(){

    /*初始化时间查询*/
    var initDate = function(){
      $("input[name='expenditureTime_begin']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});});
      $("input[name='expenditureTime_end']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});});
    }


    var module = {
      init :function(){
        initDate();
      },

      //导出文件
      exportFile : function (){
        window.location.href = 'mallReportController.do?middleExpenditureExport&'+$("#middleExpenditureListForm").serialize();
      }

    }
    return module;
  })();
</script>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
    <t:datagrid name="middleExpenditureList"  title="中间商支出账户报表" actionUrl="mallReportController.do?middleExpenditureDatagrid" idField="id" fit="true" queryMode="group">
      <t:dgCol title="编号"     field="id" hidden="true"></t:dgCol>
      <t:dgCol title="中间账户名" field="middleAccountName"   width="170"></t:dgCol>
      <t:dgCol title="中间账户(付款户)" field="middleAccountBankNo"   width="170"></t:dgCol>
      <t:dgCol title="中间账户类型" field="middleAccountType"  hidden="true" query="true" dictionary="mall_accountType"  width="170" ></t:dgCol>
      <t:dgCol title="中间账户类型名"     field="middleAccountTypeName" ></t:dgCol>
      <t:dgCol title="订单号"     field="orderNo" query="true"  width="150"></t:dgCol>
      <t:dgCol title="支付金额" field="expenditureMoney"   width="80" ></t:dgCol>
      <t:dgCol title="支付类型" field="expenditureTypeName"  width="160"></t:dgCol>
      <t:dgCol title="支付时间" field="expenditureTime" formatter="yyyy-MM-dd hh:mm:ss" queryMode="group" query="true" width="160"></t:dgCol>
      <t:dgCol title="收款方" field="payeeAccountName" query="true" width="120"></t:dgCol>
      <t:dgCol title="收款方账号" field="payeeAccountBankNo" query="true"  width="170"></t:dgCol>
      <t:dgCol title="到账时间" field="arrivalTime" formatter="yyyy-MM-dd hh:mm:ss"  width="160"></t:dgCol>
      <t:dgCol title="支付类型" field="expenditureType"  query="true" hidden="true" dictionary="mall_paySource"></t:dgCol>
      <t:dgToolBar operationCode="export" title="导出" icon="icon-putout" funname="middleExpenditureModule.exportFile"></t:dgToolBar>
    </t:datagrid>
  </div>
</div>